package com.yn.iotxiao.sql.entity.Developer;

import com.gitee.sunchenbin.mybatis.actable.annotation.*;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.util.Date;

@Data
@Table(name = "DeveloperInfo", comment = "开发者信息")
public class DeveloperInfo {

    @IsKey
    @IsAutoIncrement
    private long serid;
    @Column
    @NotNull(message = "公司名称不能为空")
    private String title;
    @Column
    private String address;
    @Column
    @NotNull(message = "联系人不能为空")
    private String name;
    @Column
    private String phone;
    @Column
    private boolean ispush;
    @Column
    private String pushurl;

    @Column
    private String appkey;
    @Column
    private String appsecret;

    @Column(name = "CREATETIME",comment = "录入时间")
    @ColumnType(MySqlTypeConstant.TIMESTAMP)
    @DefaultValue("CURRENT_TIMESTAMP")
    private Date createTime;
}
